<!DOCTYPE html>
<html lang="zh">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>机构端</title>
        <script src="/Public/static/jquery-2.0.3.min.js"></script>
        <script src="/Public/static/layer/layer.js"></script>
        <link rel="stylesheet" href="__PUBLIC__/Home/css/reset.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/style.css">
        <link rel="stylesheet" href="__PUBLIC__/Home/css/page.css" />
	</head>

	<body class="agency_box contentBox pos_rel dpflxr">
		<include file="head" />

		<!-- 2.垂直导航 -->
		<div class="navColumn">
			<a href="{:U('Mechanism/floor_index')}" <if condition="$cur eq 楼盘管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='1'>
				<div class="lineColumn pos_abs"></div>
				<label for="">楼盘管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/house_type')}"  <if condition="$cur eq 户型管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if> data-type='2'>
				<div class="lineColumn pos_abs"></div>
				<label for="">户型管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/build_manage')}" <if condition="$cur eq 楼栋管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if>  data-type='3'>
				<div class="lineColumn pos_abs"></div>
				<label for="">楼栋管理</label>
				<div class="rightArrow">
				</div>
			</a>
			<a href="{:U('Mechanism/souse_res')}" <if condition="$cur eq 房源管理">class="navColumnItem actived dpflxr pos_rel"<else />class="navColumnItem  dpflxr pos_rel"</if>  data-type='4'>
				<div class="lineColumn pos_abs"></div>
				<label for="">房源管理</label>
				<div class="rightArrow">
				</div>
			</a>
			
		</div>


		
		<!-- 二 3.1 楼盘管理  -->
		<div class="contentArea tabPage actived">
			<!-- 3.1.1 楼盘管理 -->
			<div id="employeeManage">
				<div class="caTitleBox dpflxr">
					<label for="" class="caTitle">楼盘管理</label>
					<form action="" method="POST" class="hWrapper">
						<div class="dpflxr" style="justify-content: flex-end;">
							<input type="text" class="searchBox" name="name" value="{$name}" placeholder="请输入楼盘名称"/>
<!-- 							<div class="headItem  dpflxr">
								<select name="" id="" class="selectBox">
									<option value="">区域</option>
									<option value="">选择部门</option>
								</select>
							</div>
							<div class="headItem  dpflxr">
								<select name="" id="" class="selectBox">
									<option value="">均价</option>
									<option value="">选择部门</option>
								</select>
							</div> -->
							<div class="headItem  dpflxr">
								<select name="status" id="" class="selectBox">
									<option value="">状态</option>
									<option value="1" <if condition="$status eq 1">selected</if>>待售</option>
									<option value="2" <if condition="$status eq 2">selected</if>>在售</option>
									<option value="3" <if condition="$status eq 3">selected</if>>售罄</option>
								</select>
							</div>
							<div ><button type="submit" class="caBtn searchBtn">查询</button></div>
							<a href="{:U('Mechanism/floor_add')}" id="addProject" class="caBtn ">新增楼盘</a>
						</div>
					</form>
				</div>
				
				<div class="caTable card">
					<table border="0" width="100%">
							<tbody>
								<tr>
									<th scope="col" width="8%" style="border-top-left-radius: 6px;">编号</th>
									<th scope="col" width="17%">封面图</th>
									<th scope="col" width="17%">楼盘名称</th>
									<th scope="col" width="8%">区域</th>
									<th scope="col" width="8%">均价</th>
									<th scope="col" width="8%">销售状态</th>
									<th scope="col" width="8%">楼盘状态</th>
									<th scope="col" width="8%">时间</th>
									
									<th scope="col" width="17%" style="border-top-right-radius: 6px;box-sizing: border-box;" >操作</th>
								</tr>
								<volist name="list" id="item">
									<tr>
										<td>{$item['id']}</td>
										<td>
											<div class="image">
												<img src="{$item['img']}" >
											</div>
										</td>
										<td>{$item['name']}</td>
										<td >{$item['city']}-{$item['area']}</td>
										<td>{$item['price']}元/m²</td>
										<td>{$item['status']}</td>
										<td><if condition="$item['state'] eq 1">上线<else />下线</if></td>
										
										<td>{$item['create_time']}</td>
										
										<td style="box-sizing: border-box;" ><a href="{:U('Mechanism/floor_edit',array('id'=>$item['id']))}">编辑</a><a href="{:U('Mechanism/floor_del',array('id'=>$item['id']))}">删除</a><if condition="$item['state'] eq 1"><a href="{:U('Mechanism/floor_up',array('id'=>$item['id'],'is_up'=>2))}">下线</a><else /><a href="{:U('Mechanism/floor_up',array('id'=>$item['id'],'is_up'=>1))}">上线</a></if></td>
									</tr>	
								</volist>
								
						
							</tbody>
					</table>
				</div>
			<div class="page">
	            {$_page}
	        </div>
			</div>
		
				
			
		</div>
		
		
	</body>
</html>
